/*
 * @Author: zjf
 * @Date: 2023-11-29 21:36:15
 * @LastEditors: zjf
 * @LastEditTime: 2023-12-16 19:22:21
 * @Description: 审计阶段6 审计报告20
 */
// 接口地址
export const api = window.$crud("audit/report");
// 阶段code
export const stageCode = 6;
// 业务code
export const businessCode = 20;

export const formColmuns = [
  {
    label: "项目名称",
    prop: "projectName",
    dataType: "input",
    isNotAutoWrap: true,
    disabled: true,
  },
  // {
  //   label: "项目编码",
  //   prop: "projectCode",
  //   dataType: "input",
  //   isNotAutoWrap: true,
  //   disabled: true,
  // },
  // {
  //   label: "阶段进展",
  //   prop: "stageProgress",
  //   minWidth: 140,
  //   dataType: 'dataItem',
  //   dataCode: "periodicProgress",
  //   isNotAutoWrap: true,
  // },
  {
    label: "送初审时间",
    prop: "firstAuditTime",
    minWidth: 140,
    dataType: "datetime",
    format: "yyyy-MM-dd",
  },
  {
    label: "初审完成时间",
    prop: "firstAuditEndTime",
    minWidth: 140,
    dataType: "datetime",
    format: "yyyy-MM-dd",
  },
  {
    label: "送终审时间",
    prop: "lastAuditTime",
    minWidth: 140,
    dataType: "datetime",
    format: "yyyy-MM-dd",
  },
  {
    label: "送初审金额",
    prop: "firstAuditAmount",
    minWidth: 140,
    dataType: "input",
    append: "万元",
    isNotAutoWrap: true,
  },
  {
    label: "送终审金额",
    prop: "toLastAuditAmount",
    minWidth: 140,
    dataType: "input",
    append: "万元",
    isNotAutoWrap: true,
  },
  {
    label: "核减（增）金额",
    prop: "apprAmount",
    minWidth: 140,
    dataType: "input",
    append: "万元",
    isNotAutoWrap: true,
  },
  {
    label: "核减（增）率",
    prop: "apprRate",
    minWidth: 140,
    dataType: "input",

    isNotAutoWrap: true,
  },
  {
    label: "审计单位",
    prop: "auditEntity",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "审计完成时间",
    prop: "auditCompleteTime",
    minWidth: 140,
    dataType: "datetime",
    format: "yyyy-MM-dd",
  },
  {
    label: "终审金额",
    prop: "lastAuditAmount",
    minWidth: 140,
    dataType: "input",
    append: "万元",
    isNotAutoWrap: true,
  },
];

export const tableColmuns = [
  // {
  //   label: '项目编码',
  //   prop: 'projectCode',
  //   minWidth: 140,
  //   dataType: 'input',
  //   isNotAutoWrap: true,
  // },
  {
    label: "项目名称",
    prop: "projectName",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  // {
  //   label: "阶段进展",
  //   prop: "stageProgress",
  //   minWidth: 140,
  //   dataType: 'dataItem',
  //   dataCode: "periodicProgress",
  //   isNotAutoWrap: true,
  // },
  {
    label: "送初审时间",
    prop: "firstAuditTime",
    minWidth: 140,
    dataType: "datetime",
    format: "yyyy-MM-dd",
  },
  {
    label: "初审完成时间",
    prop: "firstAuditEndTime",
    minWidth: 140,
    dataType: "datetime",
    format: "yyyy-MM-dd",
  },
  {
    label: "送初审金额(万元)",
    prop: "firstAuditAmount",
    minWidth: 140,
    dataType: "input",

    isNotAutoWrap: true,
  },
  {
    label: "送终审时间",
    prop: "lastAuditTime",
    minWidth: 140,
    dataType: "datetime",
    format: "yyyy-MM-dd",
  },
  {
    label: "送终审金额(万元)",
    prop: "toLastAuditAmount",
    minWidth: 140,
    dataType: "input",

    isNotAutoWrap: true,
  },
  {
    label: "核减（增）金额(万元)",
    prop: "apprAmount",
    minWidth: 140,
    dataType: "input",

    isNotAutoWrap: true,
  },
  {
    label: "核减（增）率",
    prop: "apprRate",
    minWidth: 140,
    dataType: "input",

    isNotAutoWrap: true,
  },
  // {
  //   label: "审计单位id",
  //   prop: "auditEntityId",
  //   minWidth: 140,
  //   dataType: "input",
  //   isNotAutoWrap: true,
  // },
  {
    label: "审计单位",
    prop: "auditEntity",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "审计完成时间",
    prop: "auditCompleteTime",
    minWidth: 140,
    dataType: "datetime",
    format: "yyyy-MM-dd",
  },
  {
    label: "终审金额(万元)",
    prop: "lastAuditAmount",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "更新时间",
    prop: "modifyTime",
    minWidth: 140,
    dataType: "datetime",
    format: "yyyy-MM-dd HH:mm:ss",
  },
];

export const formData = {
  projectName: '',               // 项目名称
  projectCode: '',               // 项目编码
  // stageProgress: '',             // 阶段进展

  firstAuditTime: '',            // 送初审时间
  firstAuditEndTime: '',         // 初审完成时间
  lastAuditTime: '',             // 送终审时间
  firstAuditAmount: '',          // 送初审金额
  toLastAuditAmount: '',         // 送终审金额
  apprAmount: '',                // 核减（增）金额
  apprRate: '',                  // 核减（增）率
  auditEntity: '',               // 审计单位
  auditCompleteTime: '',         // 审计完成时间
  lastAuditAmount: ''            // 终审金额
};

export const rules = {

};

let config = {
  api: api,
  stageCode: stageCode,
  businessCode: businessCode,
  formColmuns: formColmuns,
  tableColmuns: tableColmuns,
  formData: formData,
  rules: rules,
};

export default config;